

#include <stdio.h>
#include <string.h>

int main(void)
{
	unsigned int output_ecx;
	unsigned int output_edx;
	__asm{
		mov		eax,	1;
		cpuid;
		mov		output_ecx,	ecx;
		mov		output_edx,	edx;
	}

	if(output_edx & 0x00800000){
		printf("support MMX\n");
	}
	if(output_edx & 0x02000000){
		printf("support SSE\n");
	}
	if(output_edx & 0x04000000){
		printf("support SSE2\n");
	}
	if(output_ecx & 0x00000001){
		printf("support SSE3\n");
	}
	if(output_ecx & 0x00080000){
		printf("support SSE4.1\n");
	}
	if(output_ecx & 0x00100000){
		printf("support SSE4.2\n");
	}
}